﻿using System;
using FreeSql.DataAnnotations;

namespace QuDao
{
    /// <summary>
    /// biz_order_item: biz_订单项
    /// </summary>
    [Table(Name = "biz_order_item")]
    public partial class OrderItem
    {
        /// <summary>
        /// 订单项ID
        /// </summary>
        [Column(IsPrimary = true, IsIdentity = false)]
        public long OrderItemID { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        public int TID { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        public long OrderID { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public int GoodsID { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public long UserID { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }

        /// <summary>
        /// 主图Url
        /// </summary>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        public int CategoryID { get; set; }

        /// <summary>
        /// 类别名称
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 购买数量
        /// </summary>
        public int Num { get; set; }

        /// <summary>
        /// 进货价：会员实际优惠价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 成本价
        /// </summary>
        public decimal CostPrice { get; set; }

        /// <summary>
        /// 市场价
        /// </summary>
        public decimal MarketPrice { get; set; }

        /// <summary>
        /// 业绩提成
        /// </summary>
        public decimal Commission { get; set; }

        ///// <summary>
        ///// 直推奖励
        ///// </summary>
        //public decimal L1Fee { get; set; }

        ///// <summary>
        ///// 间推奖励
        ///// </summary>
        //public decimal L2Fee { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }


    }
}